/**********************************************
*  Classes:   GeometryNode
*  Desc:      Defines a 
*			  geometry node. Derives from SceneNode. 
*  Author:    Vaios Kalpias-Ilias (C) 2008-2009
***********************************************/

#include "GeometryNode.h"

//----------------------------------------------
/**
* Ctor
*/
GeometryNode::GeometryNode() 
: m_uiVBOVertices(0), m_uiVBONormals(0),
  m_uiVBOTexCoords(0), m_uiNumOfVertices(0),
  m_pVoidData(0)
{
	
}
//----------------------------------------------
/**
* Dtor
*/
GeometryNode::~GeometryNode()
{
	
}
//----------------------------------------------
/**
* Clones mesh
*/
GeometryNode* GeometryNode::Clone()
{
	GeometryNode* g = new GeometryNode();
	if (!g) return 0;

	g->m_uiNumOfVertices = m_uiNumOfVertices;
	g->m_sName = m_sName;
	g->m_uiVBONormals = m_uiVBONormals;
	g->m_uiVBOTexCoords = m_uiVBOTexCoords;
	g->m_uiVBOVertices = m_uiVBOVertices;
	g->m_InitialBoundingBox = m_InitialBoundingBox;
	g->m_BoundingBox = m_BoundingBox;
	g->m_pVoidData = m_pVoidData;
	
	return g;
}
//-------------------------------------------------
/**
* Pre update step
*/
void GeometryNode::PreUpdate()
{
	TransformNode::PreUpdate();
}
//-------------------------------------------------
/**
* Post update step
*/
void GeometryNode::PostUpdate()
{
	TransformNode::PostUpdate();	
}